package com.itheima.bean;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Import;

@SpringBootApplication
//@Import(Cartoon.class)
public class ApplicationContext {
    public static void main(String[] args) {
        ConfigurableApplicationContext ctx = SpringApplication.run(ApplicationContext.class);
        Cartoon bean = ctx.getBean(Cartoon.class);
        bean.play();
    }
}